/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn;

import java.util.regex.Pattern;

/**
 * <p>Project: app2022 - RegExp1
 * <p>Powered by webrx On 2022-01-13 14:27:07
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class RegExp1 {
    static Pattern p = Pattern.compile("[a-z]+",Pattern.CASE_INSENSITIVE);
    public static void main(String[] args) {
        System.out.println(p.pattern());//转换为字符串正则表达式 [a-zA-Z]+

        System.out.println("Abc".matches("[a-z]+"));//false
        System.out.println("Abc".matches("[a-zA-Z]+"));//true
        System.out.println(p.matcher("Abc").matches());//true

        //Matcher 匹配器

        //Patter 模式类
    }
}
